//
//  TradeProxyTableCell.m
//  BTCoin
//
//  Created by Robin on 30/03/2018.
//  Copyright © 2018 Robin. All rights reserved.
//

#import "TradeProxyTableCell.h"

@implementation TradeProxyTableCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    [self.proxyBtn addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (void)buttonAction:(UIButton *)sender {
    if (self.block) {
        self.block(sender.tag);
    }
}

@end
